gtk4.git
11 years agoMSVC Builds: Update Introspection Build
Chun-wei Fan [Mon, 9 Jun 2014 04:44:46 +0000 (12:44 +0800)]
MSVC Builds: Update Introspection Build

The a11y headers are now listed with the main Makefile.am of GTK, and
GDK introduced deprecated headers, so we need to account for them for the
build of the introspection files.

11 years agoVisual Studio Builds: Update Headers "Installation"
Chun-wei Fan [Mon, 9 Jun 2014 04:42:56 +0000 (12:42 +0800)]
Visual Studio Builds: Update Headers "Installation"

11 years agoMSVC 2010+ Projects: Update "Installation" Process
Chun-wei Fan [Mon, 9 Jun 2014 03:48:54 +0000 (11:48 +0800)]
MSVC 2010+ Projects: Update "Installation" Process

Currently, due to the way that Visual Studio 2010+ projects are handled,
the "install" project does not re-build upon changes to the sources, as it
does not believe that its dependencies have changed, although the changed
sources are automatically recompiled.  This means that if a part or more
of the solution does not build, or if the sources need some other fixes
or enhancements, the up-to-date build is not copied automatically, which
can be misleading.

Improve on the situation by forcing the "install" project to trigger its
rebuild, so that the updated binaries can be copied.  This does trigger an
MSBuild warning, but having that warning is way better than not having an
up-to-date build, especially during testing and development.

11 years agoinspector: Fix build with quartz backend
Juan R. Garcia Blanco [Sat, 7 Jun 2014 08:50:27 +0000 (10:50 +0200)]
inspector: Fix build with quartz backend

Add -xobjective-c to libgtkinspector_la_CFLAGS to handle objc headers.

11 years agodocs: Sort style classes alphabetically
Matthias Clasen [Fri, 6 Jun 2014 21:50:53 +0000 (17:50 -0400)]
docs: Sort style classes alphabetically

Otherwise, it is pretty hard to keep track of what
classes are missing from the list. As a consequence,
several of the existing classes were missing. Add those
at the same time.

11 years agoGtkWindow: always input-shape csd windows
Matthias Clasen [Fri, 6 Jun 2014 22:31:27 +0000 (18:31 -0400)]
GtkWindow: always input-shape csd windows

Even if we don't have border windows, we need to set the input
shape so we ignore clicks in the shadow region.

11 years agoinspector: Make picking more robust
Matthias Clasen [Fri, 6 Jun 2014 17:35:40 +0000 (13:35 -0400)]
inspector: Make picking more robust

Apparently ClutterOffscreen returns NULL as a window.
While that is not cool, we shouldn't crash.

11 years agoGtkDialog: Be a little more careful about button placement
Matthias Clasen [Fri, 6 Jun 2014 17:00:06 +0000 (13:00 -0400)]
GtkDialog: Be a little more careful about button placement

We were applying response based heuristics, even if the button
is explicitly put in the headerbar. That broke button placement
in some epiphany dialogs, such as the Cookies one. Therefore,
restrict the heuristics to action widgets that are added through
gtk_widget_add_action_widget() or <child type="action">, where it
is not possible to specify placement explicitly.

11 years agoGtkDialog: avoid a crash
Matthias Clasen [Fri, 6 Jun 2014 16:19:24 +0000 (12:19 -0400)]
GtkDialog: avoid a crash

Just because use-header-bar is set, it is not safe to assume
every action widget is in the headerbar, so be careful when
setting child properties.

11 years agowayland: Explicitly handle classic mode for now
Florian Müllner [Thu, 5 Jun 2014 14:34:43 +0000 (16:34 +0200)]
wayland: Explicitly handle classic mode for now

There are plans to add session-dependent defaults to GSettings
(based on the newly standardized XDG_CURRENT_DESKTOP); until
then, the WM uses a different schema for its button-layout
setting in classic mode. So for the time being, do the same
and pick the alternative schema when XDG_CURRENT_DESKTOP
indicates that we are in a classic session.
(It's not pretty, but hopefully won't be with us for too long ...)

https://bugzilla.gnome.org/show_bug.cgi?id=731273

11 years agowayland: Set gtk-decoration-layout
Florian Müllner [Thu, 5 Jun 2014 13:30:16 +0000 (15:30 +0200)]
wayland: Set gtk-decoration-layout

Pick up the setting from the org.gnome.desktop.wm.preferences schema
if available. It is slightly more involved than other settings, as
the actual button names used in the schema differ from the ones we
use, so we need an additional translation step.

https://bugzilla.gnome.org/show_bug.cgi?id=731273

11 years agogtk/gtkkineticscrolling.c: Include fallback-c89.c
Chun-wei Fan [Fri, 6 Jun 2014 06:47:19 +0000 (14:47 +0800)]
gtk/gtkkineticscrolling.c: Include fallback-c89.c

... as round() is being used, which is for C99 and later.  fallback-c89.c
includes math.h as well.

11 years agoinspector: Avoid a crash
Matthias Clasen [Fri, 6 Jun 2014 01:08:56 +0000 (21:08 -0400)]
inspector: Avoid a crash

An unset action-name should not cause us to crash.

11 years agowidget-factory: Avoid a crash
Matthias Clasen [Thu, 5 Jun 2014 22:46:50 +0000 (18:46 -0400)]
widget-factory: Avoid a crash

We want to be able to show the dialogs more than once, so just
hide them on delete.

11 years agoRemove unintentional addition
Matthias Clasen [Thu, 5 Jun 2014 22:12:42 +0000 (18:12 -0400)]
Remove unintentional addition

Debugging leftovers.

11 years agowidget-factory: Show some 'standard' dialog types
Matthias Clasen [Thu, 5 Jun 2014 22:07:32 +0000 (18:07 -0400)]
widget-factory: Show some 'standard' dialog types

Add examples for the types of dialog that are mentioned
in the GNOME HIG: information dialogs, action dialogs and
preference dialogs.

11 years agoGtkDialog: Improve the buildable implementation
Matthias Clasen [Thu, 5 Jun 2014 22:04:52 +0000 (18:04 -0400)]
GtkDialog: Improve the buildable implementation

When combining action child type with <action-widgets> to assign
response ids, we were not properly updating buttons that ended up
getting added to the headerbar before they have a response id.
Fix this by reapplying the headerbar button setup after parsing
<action-widgets>, and make sure to also update the suggested-action
style class.

11 years agoTrivial string change
Matthias Clasen [Thu, 5 Jun 2014 18:49:13 +0000 (14:49 -0400)]
Trivial string change

Capitalize 'Expander' in the widget-factory UI.

11 years agocombobox: Fix reentrancy in gtk_combo_box_popdown()
Carlos Garnacho [Thu, 5 Jun 2014 19:09:46 +0000 (21:09 +0200)]
combobox: Fix reentrancy in gtk_combo_box_popdown()

If called when already popped down, warnings would be issued due
to priv->grab_pointer being unexpectedly NULL, this would happen
in regular operation when selecting items in appears-as-list mode.

So both add a NULL check for priv->grab_pointer, and bail out early
if the popup window is already hidden.

11 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Thu, 5 Jun 2014 15:27:15 +0000 (17:27 +0200)]
Updated POTFILES.in and POTFILES.skip

11 years agoscrolledwindow: Replace kinetic scrolling with GtkKineticScrolling
Lieven van der Heide [Mon, 26 May 2014 16:19:24 +0000 (18:19 +0200)]
scrolledwindow: Replace kinetic scrolling with GtkKineticScrolling

Two GtkKineticScrolling helpers are used, one per axis direction.

https://bugzilla.gnome.org/show_bug.cgi?id=729608

11 years agogtk: Add kinetic scrolling helper
Lieven van der Heide [Mon, 26 May 2014 16:13:29 +0000 (18:13 +0200)]
gtk: Add kinetic scrolling helper

GtkKineticScrolling implements the actual physics laws for friction
and springs. When created, position/velocity/boundaries/constants are
given, so at every gtk_kinetic_scrolling_tick() it returns the current
position, and whether the system is in rest.

https://bugzilla.gnome.org/show_bug.cgi?id=729608

11 years agoflowbox: Use gestures for event management
Carlos Garnacho [Thu, 5 Jun 2014 13:45:21 +0000 (15:45 +0200)]
flowbox: Use gestures for event management

A multipress gesture takes care of item selection/activation, and
a drag gesture is used to manage events when rubberbanding selection
is performed.

11 years agolistbox: Use multipress gesture for row selection/activation
Carlos Garnacho [Thu, 5 Jun 2014 13:40:02 +0000 (15:40 +0200)]
listbox: Use multipress gesture for row selection/activation

This gesture replaces the button_press/release_event handlers.

11 years agolabel: Use gestures for event management
Carlos Garnacho [Thu, 5 Jun 2014 13:36:15 +0000 (15:36 +0200)]
label: Use gestures for event management

A multipress gesture takes care of link handling, and char/word/all
selection mode on selectable labels. A drag gesture is used for both
text selection and DnD checks on selectable labels.

11 years agorange: Use GtkGesture for event management
Carlos Garnacho [Thu, 5 Jun 2014 13:29:14 +0000 (15:29 +0200)]
range: Use GtkGesture for event management

A multipress gesture takes care of clicks, and where those happened.
If the click is meant to move the slider while pressed, the drag gesture
takes over, dragging the slider while active.

11 years agoexpander: Use multipress gesture for event management
Carlos Garnacho [Thu, 5 Jun 2014 13:27:25 +0000 (15:27 +0200)]
expander: Use multipress gesture for event management

This actually acts regardless of the value n_press, alternatively
expanding and collapsing the GtkExpander.

11 years agowidget: reset all controllers when the widget becomes insensitive
Carlos Garnacho [Thu, 5 Jun 2014 13:31:35 +0000 (15:31 +0200)]
widget: reset all controllers when the widget becomes insensitive

Widgets becoming insensitive won't receive further events, but there
could be chances the controllers don't get properly notified and reset
in those situations.

11 years agoinspector: Make GMenu content show up
Matthias Clasen [Thu, 5 Jun 2014 13:29:18 +0000 (09:29 -0400)]
inspector: Make GMenu content show up

My problem was that all the content is usually hidden away
in sections, so without recursion, nothing shows up. So,
implement the recursion then.

11 years agoForgotten file
Matthias Clasen [Thu, 5 Jun 2014 12:35:07 +0000 (08:35 -0400)]
Forgotten file

11 years agoinspector: show GMenus
Matthias Clasen [Thu, 5 Jun 2014 12:31:06 +0000 (08:31 -0400)]
inspector: show GMenus

This does not quite work yet, and I have no idea why.

11 years agoGtkMenuTracker: fix signal handler argument list
Ryan Lortie [Thu, 5 Jun 2014 12:28:48 +0000 (08:28 -0400)]
GtkMenuTracker: fix signal handler argument list

The signal handler for the visibility of menu items changing had the
wrong signature, resulting in the GParamSpec from the notify signal
being treated as a boolean (which was always true).  This resulted in
items being added over and over and never being removed.

Fix that...

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Thu, 5 Jun 2014 11:07:46 +0000 (14:07 +0300)]
Updated Hebrew translation

11 years agoinspector: Actually destroy the property editors
Matthias Clasen [Thu, 5 Jun 2014 09:56:47 +0000 (05:56 -0400)]
inspector: Actually destroy the property editors

We were never finalizing any of the popovers used for editing
properties. Fix that.

11 years agoinspector: Fix a memory leak
Matthias Clasen [Thu, 5 Jun 2014 09:49:34 +0000 (05:49 -0400)]
inspector: Fix a memory leak

11 years agoinspector: Add an initial action editor
Matthias Clasen [Thu, 5 Jun 2014 09:48:26 +0000 (05:48 -0400)]
inspector: Add an initial action editor

Use a popup, like we do for properties. For now, it allows
activating the action (with parameter, if necessary) and
setting the state.

11 years agogtk/deprecated/gtkcolorsel.c: Include gtkwindowgroup.h
Chun-wei Fan [Thu, 5 Jun 2014 06:45:35 +0000 (14:45 +0800)]
gtk/deprecated/gtkcolorsel.c: Include gtkwindowgroup.h

Since commit 872fbfac the GtkWindowGroup was split out from the GtkWindow
sources, so include gtkwindowgroup.h to avoid C4013 warnings/errors
(implicit declaration of ...) on gtk_window_group_add_window().

11 years agoExpand GtkWindowGroup docs
Matthias Clasen [Thu, 5 Jun 2014 01:25:05 +0000 (21:25 -0400)]
Expand GtkWindowGroup docs

11 years agoinspector: Lower the inspector window when picking
Matthias Clasen [Thu, 5 Jun 2014 00:29:10 +0000 (20:29 -0400)]
inspector: Lower the inspector window when picking

This avoids the problem  of the inspector window covering the
widget you want to pick.

11 years agoinspector: Show the widget tree when picking
Matthias Clasen [Thu, 5 Jun 2014 00:12:42 +0000 (20:12 -0400)]
inspector: Show the widget tree when picking

Makes more sense that way.

11 years agoinspector: Go to the desired tab
Matthias Clasen [Wed, 4 Jun 2014 23:28:24 +0000 (19:28 -0400)]
inspector: Go to the desired tab

We were setting the next-tab properly, but were trying to
read it off the wrong object. Now, going from a cell renderer
attribute mapping to the model, or from an action-name to the
action actually works.

11 years agotests: Add multitouch gesture tests
Carlos Garnacho [Wed, 4 Jun 2014 11:35:16 +0000 (13:35 +0200)]
tests: Add multitouch gesture tests

So far, gesture behavior on lack/excess of touchpoints is tested, as well
as sequence hand-in between gestures in these situations.

11 years agowidget: Set GDK_BUTTON1_MASK on emulated pointer events
Carlos Garnacho [Wed, 4 Jun 2014 10:56:57 +0000 (12:56 +0200)]
widget: Set GDK_BUTTON1_MASK on emulated pointer events

The touch_event handler was missing those when emulating pointer events
for the widgets that get GDK_TOUCH_MASK set, but have no specialized
touch handlers.

11 years agoFix up internal function naming
Matthias Clasen [Wed, 4 Jun 2014 10:38:20 +0000 (06:38 -0400)]
Fix up internal function naming

Even if you believe this functionality belongs into gdk, it
is not ok to name internal functions in gtkwindow.c gdk_window...

11 years agoSplit GtkWindowGroup into its own file
Matthias Clasen [Wed, 4 Jun 2014 10:18:03 +0000 (06:18 -0400)]
Split GtkWindowGroup into its own file

gtkwindow.c is too big and too messy. This is a small step
towards making it better.

11 years agoShorten test paths
Matthias Clasen [Tue, 3 Jun 2014 18:22:55 +0000 (14:22 -0400)]
Shorten test paths

11 years agolabel-sizing reftest: Hardcode ltr
Matthias Clasen [Tue, 3 Jun 2014 16:26:16 +0000 (12:26 -0400)]
label-sizing reftest: Hardcode ltr

This reftest doesn't work in rtl.

11 years agoreftests: Add a way to hardcode text direction
Matthias Clasen [Tue, 3 Jun 2014 16:25:23 +0000 (12:25 -0400)]
reftests: Add a way to hardcode text direction

Some tests don't work in rtl, so add a way to hardcode
the expected text direction. This is in preparation for
running reftests in an rtl locale.

11 years agotests: Add tests for grab interaction with gestures
Carlos Garnacho [Tue, 3 Jun 2014 13:09:16 +0000 (15:09 +0200)]
tests: Add tests for grab interaction with gestures

The behavior of gestures that are kept outside/inside a grab is tested,
to ensure the former are cancelled and the latter remain unchanged.

11 years agowidget: Ensure all gestures outside a grab scope are cancelled
Carlos Garnacho [Tue, 3 Jun 2014 13:04:25 +0000 (15:04 +0200)]
widget: Ensure all gestures outside a grab scope are cancelled

This code is a product of early stages in the gestures branch, where
capturing would have an effect outside grab boundaries. But this isn't
really the case, so every gesture outside the grab scope must be reset
to avoid keeping stale data.

11 years agotests: Add gesture tests for early/late sequence claiming
Carlos Garnacho [Tue, 3 Jun 2014 12:15:14 +0000 (14:15 +0200)]
tests: Add gesture tests for early/late sequence claiming

This tests both a sequence being claimed early to be then denied
(and handled deeper in propagation chain), and a sequence being
claimed late in the capture phase (and thus being cancelled deeper
in the propagation chain)

11 years agotests: Inform of gesture updates during recognition
Carlos Garnacho [Tue, 3 Jun 2014 14:11:24 +0000 (16:11 +0200)]
tests: Inform of gesture updates during recognition

May be useful to find out which gestures are still being triggered
by a sequence.

11 years agotestsuite: Prepare gestures testsuite for mouse/touch events
Carlos Garnacho [Tue, 3 Jun 2014 11:17:13 +0000 (13:17 +0200)]
testsuite: Prepare gestures testsuite for mouse/touch events

state is preserved for mouse emulation, and up to 10 touchpoints for touch
emulation.

11 years agowidget: Only deny a sequence if it was previously claimed
Carlos Garnacho [Mon, 2 Jun 2014 15:38:46 +0000 (17:38 +0200)]
widget: Only deny a sequence if it was previously claimed

Before this change, a sequence being claimed deep in the event propagation
chain would make the sequence go denied on every ancestor, regardless of
previous state.

To make things more consistent, only deny the sequence if it was previously
claimed, so the behavior is the same for gesture groups within the widget
than for those outside the widget.

The gestures testsuite has been updated to reflect this new behavior.

11 years agogesture: Ensure late gestures handling the sequence get the group state
Carlos Garnacho [Sun, 1 Jun 2014 19:44:55 +0000 (21:44 +0200)]
gesture: Ensure late gestures handling the sequence get the group state

It might happen that a gesture claims a sequence before any other gesture
in its group even handled a single event from that sequence. In that case,
ensure the state is set accordingly right when the sequence is handled in
those.

The "group" gesture testcase has been updated to observe this behavior.

11 years agoinspector: Parse custom css with a delay
Matthias Clasen [Tue, 3 Jun 2014 13:44:28 +0000 (09:44 -0400)]
inspector: Parse custom css with a delay

The CSS editor was feeling a little sluggish, because it was
reparsing and reapplying the CSS on every keystroke. Add a small
delay, to make this feel smoother.

11 years agoreftests: Use "all" property in inherit-and-inital test
Benjamin Otte [Tue, 3 Jun 2014 12:35:00 +0000 (14:35 +0200)]
reftests: Use "all" property in inherit-and-inital test

11 years agoMSVC Projects: "Generate" the gtk-inspector Projects
Chun-wei Fan [Tue, 3 Jun 2014 09:03:40 +0000 (17:03 +0800)]
MSVC Projects: "Generate" the gtk-inspector Projects

Like the GDK and GTK portions, use autotools scripts to generate the
complete projects for gtk-inspector as sources there seem to change from
time to time.

It might be so that this, like the a11y sources, will be referenced from
the main Makefile.am of GTK directly, but just do this so that the
projects can build properly.

11 years agogdk/Makefile.am: Fix MSVC Project Generation
Chun-wei Fan [Tue, 3 Jun 2014 09:00:02 +0000 (17:00 +0800)]
gdk/Makefile.am: Fix MSVC Project Generation

We need to account for the sources that moved to gdk/deprecated/, so the
slashes must be converted here.

11 years agoMSVC Builds: Update the gtk-demo Projects
Chun-wei Fan [Tue, 3 Jun 2014 08:55:46 +0000 (16:55 +0800)]
MSVC Builds: Update the gtk-demo Projects

Add the gestures demo sources into the build, so that the build will
complete properly.

11 years agoUpdate Visual Studio Solution Files
Chun-wei Fan [Tue, 3 Jun 2014 08:46:53 +0000 (16:46 +0800)]
Update Visual Studio Solution Files

Remove all references to the gtka11y projects as they are all built
together with the GTK DLL.

https://bugzilla.gnome.org/show_bug.cgi?id=730615

11 years agoRun reftests repeatedly
Matthias Clasen [Tue, 3 Jun 2014 02:46:23 +0000 (22:46 -0400)]
Run reftests repeatedly

Install test files that run the reftests in the
Adwaita:dark and HighConstrast themes. It works,
so why not.

11 years agoDrop debug spew from installed tests
Matthias Clasen [Tue, 3 Jun 2014 02:37:29 +0000 (22:37 -0400)]
Drop debug spew from installed tests

This is no longer needed, we found the problem.

11 years agoAdd an expander reftest
Matthias Clasen [Tue, 3 Jun 2014 02:33:20 +0000 (22:33 -0400)]
Add an expander reftest

This test check that resizing the window when expanding
the expander yields the same end result as having the
expander expanded to begin with. The test uses the inhibit
mechanism introduced in the previous commit.

11 years agoAdd a way to delay snapshots in reftests
Matthias Clasen [Tue, 3 Jun 2014 02:31:49 +0000 (22:31 -0400)]
Add a way to delay snapshots in reftests

This adds an inhibit api that code from the reftest module
can use to delay the taking of the snapshot. Also refactor
the code in gtk-reftest to use the inhibit mechanism for
its own delaying of the snapshot until after the first
expose.

11 years agoForgotten file
Matthias Clasen [Tue, 3 Jun 2014 01:43:04 +0000 (21:43 -0400)]
Forgotten file

11 years agoAdd a reftest for flipping icons
Matthias Clasen [Tue, 3 Jun 2014 01:41:32 +0000 (21:41 -0400)]
Add a reftest for flipping icons

Taking advantage of our new direction flipping ability.

11 years agowindow: Only check for the event widget if clicked on the "content" region
Carlos Garnacho [Mon, 2 Jun 2014 16:04:36 +0000 (18:04 +0200)]
window: Only check for the event widget if clicked on the "content" region

Every button press/release event reaching the the multipress gesture in GtkWindow
and happening in the "title" region must be handled, regardless of the event widget.
Children there wanting the event(s) for themselves are (and were always) expected
to stop event propagation.

So the only place to check for the event widget's "window-dragging" style property
is the "content" region, which matches the pre-gestures behavior.

This fixes some issues with sequences being mistakenly claimed (and events not
propagated further) on situations it shouldn't.

11 years agowindow: Handle manually bubbled events
Carlos Garnacho [Mon, 2 Jun 2014 15:55:26 +0000 (17:55 +0200)]
window: Handle manually bubbled events

The multipress gesture must react to either direct events on the
GtkWindow (special cased through _gtk_widget_check_handle_wm_event),
or bubbled events from child widgets. Ensure bubbled events go
through the gesture, those are fed manually to make sure events are
only handled once, in either one or other place. The implicit grab
will ensure that doesn't change mid-action.

11 years agowindow: Refactor _gtk_window_check_handle_wm_event()
Carlos Garnacho [Mon, 2 Jun 2014 15:53:53 +0000 (17:53 +0200)]
window: Refactor _gtk_window_check_handle_wm_event()

Separate the event widget check from event handling

11 years agotreeview: Ensure the event is consumed on ::row-activate
Carlos Garnacho [Mon, 2 Jun 2014 15:47:10 +0000 (17:47 +0200)]
treeview: Ensure the event is consumed on ::row-activate

Otherwise the event is possibly handled, but still propagated further anyway.
Ensure the event is consumed by claiming the current sequence on the
GtkGestureMultiPress::pressed handler.

11 years agotreeview: restrict the multipress gesture to GDK_BUTTON_PRIMARY
Carlos Garnacho [Sun, 1 Jun 2014 18:20:08 +0000 (20:20 +0200)]
treeview: restrict the multipress gesture to GDK_BUTTON_PRIMARY

::row-activated only used to be triggered by GDK_BUTTON_PRIMARY, so make
the multipress gesture handling this now to be only triggered by that same
button.

https://bugzilla.gnome.org/show_bug.cgi?id=731020

11 years agoRevert "Use minimum/natural size semantics"
Matthias Clasen [Sun, 1 Jun 2014 14:16:01 +0000 (10:16 -0400)]
Revert "Use minimum/natural size semantics"

This reverts commit 6d53c2339f79baa0b295ecc614f41f9daab2e132.

https://bugzilla.gnome.org/show_bug.cgi?id=731054 showed some
major regressions caused by this commit.

11 years agoRevert "Better resize of expandable columns"
Matthias Clasen [Sun, 1 Jun 2014 14:15:41 +0000 (10:15 -0400)]
Revert "Better resize of expandable columns"

This reverts commit 0050d469b592ec571a5940f1ab1d842a76905e17.

Conflicts:
gtk/gtktreeview.c

11 years agoAvoid another revert conflict
Matthias Clasen [Sun, 1 Jun 2014 14:11:14 +0000 (10:11 -0400)]
Avoid another revert conflict

Moving this bit up a few lines lets the following revert apply
cleanly.

11 years agoRevert "treeview: Remove unneeded checks"
Matthias Clasen [Sun, 1 Jun 2014 14:09:52 +0000 (10:09 -0400)]
Revert "treeview: Remove unneeded checks"

This reverts commit a158a2aa48c8023f99963642cc2657bff207b82d.

The commit conflicts with a later revert, so move it out of the way.

11 years agoAdd more gestures tests
Matthias Clasen [Sat, 31 May 2014 22:46:43 +0000 (18:46 -0400)]
Add more gestures tests

Some of these sequences look wrong/questionable to me.

11 years agogestures test: make more readable
Matthias Clasen [Sat, 31 May 2014 16:54:36 +0000 (12:54 -0400)]
gestures test: make more readable

11 years agogestures: Add a test for grouping
Matthias Clasen [Sat, 31 May 2014 16:48:00 +0000 (12:48 -0400)]
gestures: Add a test for grouping

I'm not entirely convinced the test produces the expected
outcome, here.

11 years agoExpand gesture tests a big more
Matthias Clasen [Sat, 31 May 2014 16:12:10 +0000 (12:12 -0400)]
Expand gesture tests a big more

Print out sequence state changes, and cancellation, and verify that
claiming a gestures causes the expected state changes.

11 years agotextview: Only trigger drag gesture on GDK_BUTTON_PRIMARY
Carlos Garnacho [Sat, 31 May 2014 12:54:32 +0000 (14:54 +0200)]
textview: Only trigger drag gesture on GDK_BUTTON_PRIMARY

This gesture was only meant to react on GDK_BUTTON_PRIMARY (either
through real pointer events, or implicitly assumed from touch events),
as it used to behave before gestures. Otherwise the gtk_drag_begin*()
call assumes being triggered by button 1, and the drag misbehaves
because that button isn't really in the state mask.

https://bugzilla.gnome.org/show_bug.cgi?id=731016

11 years agoUpdated POTFILES.skip
Piotr Drąg [Sat, 31 May 2014 13:08:21 +0000 (15:08 +0200)]
Updated POTFILES.skip

11 years agogtk-reftest: Add GMODULE_CFLAGS/LIBS
Benjamin Otte [Sat, 31 May 2014 12:39:27 +0000 (14:39 +0200)]
gtk-reftest: Add GMODULE_CFLAGS/LIBS

They aren't included in GTK_DEP_CFLAGS/LIBS so they need to be added
manually.

11 years agotestsuite: put installed tests in the right place
Matthias Clasen [Sat, 31 May 2014 04:16:07 +0000 (00:16 -0400)]
testsuite: put installed tests in the right place

Follow the prevailing practice and put the installed tests
into $libdir/installed-tests/$PACKAGE instead of
$pkglibdir/installed-tests.

11 years agoinspector: better type detection for resources
Matthias Clasen [Sat, 31 May 2014 03:45:11 +0000 (23:45 -0400)]
inspector: better type detection for resources

Pass the name to g_content_type_guess. With this, most
CSS gets sniffed as C source code.

11 years agogtk-reftest: Don't warn needlessly
Matthias Clasen [Sat, 31 May 2014 03:30:56 +0000 (23:30 -0400)]
gtk-reftest: Don't warn needlessly

Only warn about the --direction argument if the option was
actually specified.

11 years agoinspector: Go to the right tab when changing objects
Matthias Clasen [Sat, 31 May 2014 03:21:13 +0000 (23:21 -0400)]
inspector: Go to the right tab when changing objects

When going from attribute mapping to model, it makes most sense
to go directly to the data tab, and when going from an action
name to the owner, we want to show the actions tab. Make it so.

11 years agoinspector: Allow jumping to actions
Matthias Clasen [Sat, 31 May 2014 02:56:12 +0000 (22:56 -0400)]
inspector: Allow jumping to actions

The property editor for action-name properties now offers
to go to the object where the action is defined.

11 years agoinspector: Trivial string change
Matthias Clasen [Sat, 31 May 2014 02:20:31 +0000 (22:20 -0400)]
inspector: Trivial string change

'Size Groups' looks better than 'Sizegroups'.

11 years agoreftests: Add reftest for direction change
Benjamin Otte [Sat, 31 May 2014 03:17:51 +0000 (05:17 +0200)]
reftests: Add reftest for direction change

This reftest makes use of the new feature to add signal handlers.

It adds a libreftest.so module containing all the code for the reftests.
When adding a test named reftest.ui, please keep code contained in a
source file names reftest.c and add that file to Makefile.am.

https://bugzilla.gnome.org/show_bug.cgi?id=730833

11 years agoUpdate GtkImage icons when the direction is changed
Debarshi Ray [Tue, 27 May 2014 18:41:50 +0000 (20:41 +0200)]
Update GtkImage icons when the direction is changed

Don't call gtk_widget_set_state_flags(), it filters the direction flags.
Instead, call gtk_widget_update_state_flags() directly.

https://bugzilla.gnome.org/show_bug.cgi?id=730833

11 years agogtk-reftest: Clarify --direction argument parameters
Benjamin Otte [Sat, 31 May 2014 02:52:53 +0000 (04:52 +0200)]
gtk-reftest: Clarify --direction argument parameters

... and print a proper error message when the parameter is not
recognized.

11 years agogtk-reftest: Allow loading code for reftests
Benjamin Otte [Fri, 30 May 2014 20:36:10 +0000 (22:36 +0200)]
gtk-reftest: Allow loading code for reftests

When connecting signal names, gtk-reftest now allows you to use a colon
in the signal handler name like so:
  module:function_name
where module is a module loaded from the same directory (or the .libs
subdirectory for compatibility with uninstalled libtool) as the running
test and the function is resolved in that module. Of course, normal
function names work as before.

11 years agoreftests: Add a reftest with signals
Benjamin Otte [Fri, 30 May 2014 02:33:06 +0000 (04:33 +0200)]
reftests: Add a reftest with signals

11 years agoreftests: Automatically connect signals
Benjamin Otte [Fri, 30 May 2014 02:31:40 +0000 (04:31 +0200)]
reftests: Automatically connect signals

11 years agobuilder: Cleanup
Benjamin Otte [Thu, 29 May 2014 22:21:18 +0000 (00:21 +0200)]
builder: Cleanup

Use the usual way of providing user data to vfuncs:
- Don't allocate it, use the stack
- Use CamelCase for naming the struct

11 years agoinspector: Handle attribute mapping changes better
Matthias Clasen [Sat, 31 May 2014 01:47:40 +0000 (21:47 -0400)]
inspector: Handle attribute mapping changes better

When the mapping is changed, notify the property and
queue a draw on the widget. This makes both the inspector
and the app update their display.

11 years agoinspector: some code reshuffling
Matthias Clasen [Sat, 31 May 2014 01:35:39 +0000 (21:35 -0400)]
inspector: some code reshuffling

11 years agoinspector: Support saving CSS
Matthias Clasen [Sat, 31 May 2014 00:35:43 +0000 (20:35 -0400)]
inspector: Support saving CSS

We have a file chooser, lets use it.

11 years agoGtkPrintUnixDialog: Remove some dead code
Matthias Clasen [Fri, 30 May 2014 22:50:07 +0000 (18:50 -0400)]
GtkPrintUnixDialog: Remove some dead code

Automatic template children get cleaned up and NULLed out in destroy,
the g_clear_pointer() calls in finalize never do anything.